<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="../inc.jsp"></jsp:include>
<script type="text/javascript">
$(function() {
	$('#xyhsq_unionManCmb').combobox({
		url : '${pageContext.request.contextPath}/school/specialAction!getSpecialCmb.action',
		valueField : 'schoolmateName',
		textField : 'schoolmateName'
	});
});

function submitApply() {
	$('#xyh_xyhsq_form').form('submit',{
		url:'${pageContext.request.contextPath}/school/unionAction!add.action', 
		success:function(data){
			var obj=jQuery.parseJSON(data);
			$.messager.show({
	    		title:'提示',
	    		msg:obj.msg
	    	});
			$('#xyh_xyhsq_pnl input').val('');
			$('#xyh_xyhsq_pnl textarea').val('');
		}
	});
}
</script>
</head>
<body>
<div style="padding:10px;border:false,fit:true">
<div id="xyh_xyhsq_pnl"class="easyui-panel" title="校友会申请"   
        style="background:#f5f5f5;width:570px;height:360px;padding:10px 20px 20px 20px;"  
        data-options="iconCls:'icon-add',closable:false,collapsible:false,minimizable:false,maximizable:false">
		
	<form id="xyh_xyhsq_form" method="post">
		<table>
			<tr height="40px">
				<td >校友会名称：</td>
				<td ><input type="text" name="unionName" class="easyui-validatebox"  data-options="required:true,validType:'CHS' ,missingMessage:'必填！'" ></td>
				<td >所在地：</td>
				<td><input type="text" name="unionPlace" class="easyui-validatebox"  data-options="required:true,validType:'CHS' ,missingMessage:'必填！'"></td>
			</tr>
			<tr >
				<td style="padding:0px 10px 0px 0px;">校友会简介：</td>
				<td colspan="3"><textarea rows="2" style="width:392px" name="unionText"  class="easyui-validatebox"  data-options="validType:'length[0,150]'"></textarea></td>
			</tr>
			<tr height="40px">
				<td>校友负责人：</td>
				<td><input type="text" name="unionMan"  id="xyhsq_unionManCmb" data-options="required:true,missingMessage:'必填！'"></td>
				<td>Email：</td>
				<td><input type="text" name="unionEmail"  class="easyui-validatebox"  data-options="required:true,validType:'email' ,missingMessage:'必填！'"></td>
			</tr>
			<tr height="35px">
				<td>校友会地址：</td>
				<td colspan="3"><input type="text" style="width:392px" name="unionAddress" class="easyui-validatebox"  data-options="required:true,validType:'length[0,50]' ,missingMessage:'必填！'"></td>
			</tr>
			<tr height="35px">
				<td>校友会电话：</td>
				<td style="padding:0px 10px 0px 0px;"><input type="text" name="unionTel"  class="easyui-validatebox"  data-options="required:true,validType:'mobile' ,missingMessage:'必填！'"></td>
				<td >QQ群：</td>
				<td><input type="text" name="unionQq"  class="easyui-validatebox"  data-options="validType:'QQ' "></td>
			</tr>
			<tr>
				<td colspan="3"></td>
				<td style="padding:25px 0px 0px 50px;"><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'" onClick="submitApply()">提交申请</a> 
			</tr>
		</table>
	</form>
</div>
</div>

</body>
</html>

